const DictMixin = {
	data() {
		return {
			dictOptions: [],
		}
	},
	methods: {
		initDictData(code,callback) {
			//根据字典Code, 初始化字典数组
			this.$http.get(`/sys/dict/getDictItems/${code}`,{}).then(res=>{
				if(res.data.success &&  res.data.result){
					if (typeof callback == 'function')  {
						callback(res.data.result)
					}
				}
			})
		},
	},
}
export default DictMixin;